import React, { Component } from 'react'
import axios from "@/axios" 
import { Button, Row, Col, Divide } from 'antd';
import { Redirect } from "react-router-dom"
export default class Index extends Component {
  componentDidMount(){
    axios.get("/package/listAll?selectService=4").then((res) => {
    }).catch((err) => {
      
    });
  }
  toPath = (path) => {
    let { history } = this.props
    history.push(path)
  }
  loginOut=()=>{
    let { history } = this.props
    localStorage.removeItem("token")
    history.replace("/login")
  }
  render() {
    return (
      <div>
          {/* <div>
          <Row justify="center">
            <Col span={4}>
              <Button type="primary" onClick={() => { this.toPath("/") }}>to Index</Button>
            </Col>
            <Col span={4}>
              <Button type="primary" onClick={() => { this.toPath("/goods") }}>to /goods/gl</Button>
            </Col>
            <Col span={4}>
              <Button type="primary" onClick={() => { this.toPath("/goods/classity") }}>to /goods/classity</Button>
            </Col>
            <Col span={4}>
              <Button type="primary" onClick={this.loginOut }>登出</Button>
            </Col>
          </Row>
        </div> */}
        Index
      </div>
    )
  }
}
